{% extends "pos/base.html" %} {% load static %} {% block title %}Delivery #{{ delivery.t_id }}{% endblock %} {% block content %}
Delivery #{{ delivery.t_id }}
Invoice #{{ delivery.invoice_t_id }}
Back
Status: {{ delivery.get_status_display }}
Date: {{ delivery.delivery_date|date:"d-m-Y h:i A" }}
Hub: {{ delivery.delivery_city }}
Received By: {{ delivery.received_by_name }}

{% if invoice %}
Invoice: #{{ invoice.invoice_no }}
Builty: {{ invoice.builty_no|default:"-" }}
Route: {{ invoice.from_city }} → {{ invoice.to_city }}
Current Status: {{ invoice.get_flow_status_display }}
{% endif %} {% if delivery.remarks %}
Remarks: {{ delivery.remarks }} {% endif %}
Delivery Lines
{% for line in lines %} {% empty %} {% endfor %}
# Item Booked Received Damage Short Damage Remarks
{{ forloop.counter }} {{ line.product_name }} {{ line.booked_qty|floatformat:2 }} {{ line.received_qty|floatformat:2 }} {{ line.damaged_qty|floatformat:2 }} {{ line.short_qty|floatformat:2 }} {{ line.damage_remarks|default:"-" }}
No lines.
{% endblock %}